list_x = [2, 3, 1, 2.5, 3.8, 1.3]
max_num = list_x[0]

for x in list_x:
    if x > max_num:
    # 如果当前值比最大值更大，就将最大值设为当前值
        max_num = x

print(max_num)
